package com.zhouchao.email.task;

import lombok.Data;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;

/**
 * @Author: zhouchao
 * @Date: 2021/10/17 03:15
 * @Description:
 */
@Data
public class SendTask implements Runnable {

    private JavaMailSender javaMailSender;
    private SimpleMailMessage message;

    @Override
    public void run() {
        javaMailSender.send(message);
    }
}
